package com.tvshows.repository;

import com.tvshows.domain.Historique;
import com.tvshows.domain.Show;

import java.util.List;

/**
 * Spring Data MongoDB repository for the Historique entity.
 */
public interface CustomHistoriqueRepository {

    /**
     * Adds a new Historique to a show
     * @param show the show
     */
    void add(Show show);

    /**
     * Used to return tv show history
     * @param showId the id of collection t_show
     * @return a list of historique
     */
    public List<Historique> findByShow(String showId);
}
